<!doctype html>
<html lang="zh">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="bootstrap.min.css">

    <title>Bootstrap 练习</title>
    <style>
        .bg {
            background-color: #ccc;
            border: burlywood 1px dashed;
        }

        div {
            margin-bottom: 10px;
        }

    </style>
</head>

<body>
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <a class="navbar-brand" href="#">Navbar</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Link</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        Dropdown
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item" href="#">Action</a>
                        <a class="dropdown-item" href="#">Another action</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="#">Something else here</a>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
                </li>
            </ul>
            <form class="form-inline my-2 my-lg-0">
                <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>
        </div>
    </nav>
    <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
        <ol class="carousel-indicators">
            <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
            <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
            <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
        </ol>
        <div class="container">
            <div class="carousel-inner">
                <div class="carousel-item active" data-interval="2000">
                    <img src="http://www.910club.cn/kjsc/UploadFiles20081886/200904/2009042317541209.jpg"
                        class="d-block w-100" alt="...">
                </div>
                <div class="carousel-item" data-interval="2000">
                    <img src="http://1832.img.pp.sohu.com.cn/images/blog/2010/9/28/10/19/12c09690a5dg215.jpg"
                        class="d-block w-100" alt="...">
                </div>
                <div class="carousel-item" data-interval="2000">
                    <img src="https://gss0.baidu.com/-fo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/6a600c338744ebf8bc37f576d8f9d72a6059a731.jpg"
                        class="d-block w-100" alt="...">
                </div>
            </div>
        </div>

        <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>
    <div class="container-md">
        <h1 class="bg">Bootstrap 练习</h1>
    </div>
    <nav aria-label="breadcrumb" class="container">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="#">Home</a></li>
            <li class="breadcrumb-item"><a href="#">Library</a></li>
            <li class="breadcrumb-item active" aria-current="page">Data</li>
        </ol>
    </nav>

    <div class="container-fluid">
        <h1 class="bg">Bootstrap 练习</h1>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-sm">
                One of columns
            </div>
            <div class="col-sm">
                One of columns
            </div>
            <div class="col-sm">
                One of columns
            </div>
            <div class="col-sm">
                One of columns
            </div>
            <div class="col-sm">
                One of columns
            </div>

        </div>
        <div class="row text-center">
            <div class="col-md-3">左侧</div>
            <div class="col bg-secondary text-white">中间</div>
            <div class="col-md-3">右侧</div>
        </div>
        <div class="row justify-content-around">
            <div class="col-2 bg-secondary text-white">
                One of two columns
            </div>
            <div class="col-3 text-center bg-secondary text-white">
                One of two columns
            </div>
            <div class="col-2 bg-secondary text-white">
                One of two columns
            </div>
        </div>
        <div class="row">
            <div class="col-md-3 text-center bg-secondary text-white offset-md-6">偏移</div>
        </div>

        <!-- 栅格嵌套 -->
        <div class="row">
            <div class="col-md-8 text-center bg-secondary text-white">
                <div class="row">
                    <div class="col-6 text-center bg-secondary text-white border border-danger">嵌套在另外一层中</div>
                    <div class="col-6 text-center bg-secondary text-white border border-danger"></div>
                </div>
            </div>
            <div class="col"></div>

        </div>

    </div>
    <div class="container-fluid">
        <p class="text-center ">
            <img src="https://getuikit.com/images/uikit-meta.png" class="img-fluid">
        </p>
    </div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js"
        integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
        integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js"
        integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
        crossorigin="anonymous"></script>
</body>

</html>
